package org.dxy.types.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ProductStatusEnum {
    CREATED("created", "已创建"),
    // 启用/禁用状态
    ENABLED("enabled", "已启用"),
    DISABLED("disabled", "已禁用"),
    // 生产相关状态
    PRODUCING("producing", "生产中"),
    INSPECTION("inspection", "质量检查中"),
    PACKAGING("packaging", "包装中"),
    EXITED_WORKSTATION("exitedWorkstation","已出站"),
    // 返修相关状态
    REPAIRING("repairing", "返修中"),
    REPAIR_FAILED("repairFailed", "返修失败"),
    REPAIR_COMPLETED("repairCompleted", "返修完成"),

    // 销售相关状态
    SOLD("sold", "已销售"),

    // 销毁相关状态
    DESTROYED("destroyed", "已销毁"),

    // 错误或特殊状态
    DAMAGED("damaged", "已损坏"),
    WORKSTATION_READY("workstationReady", "工位准备就绪"),
    IN_WORKSTATION("inWorkstation", "产品在工位中");

    private final String key;        // 用于标识状态的代码
    private final String description; // 状态的描述
}
